{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang admin_misc_module:admin}</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang admin_misc_module_tip:admin}
	</div>
	<div class="setform">
		<table class="table table-striped">
        <thead>
          <tr>
            <th width="60">{lang modulename:admin}</th>
            <th width="400">{lang description:admin}</th>
            <th width="100">{lang provider:admin}</th>
            <th width="50">{lang version:admin}</th>
            <th width="100">{lang operation:admin}</th>
          </tr> 
        </thead>
        <tbody>
        {loop $modules $key $sm}
			<tr>
			<td>$sm['name']</td>
			<td>$sm['description']</td>
			<td>$sm['author']</td>
			<td>$sm['version']</td>
			<td> 
			{if !$sm['loaded']}
			<a href="{url admin/modulemanage?act=install&md=$sm['name']}">{lang install:admin}</a> 
			{else}
			{lang installed:admin}  
			<a href="{url admin/modulemanage?act=uninstall&md=$sm['name']}">{lang uninstall:admin}</a>
			{/if}
			</td>
          	</tr>
		{/loop}
        </tbody>
		</table>
	</div>
</div>
{template common/contentfooter}